package com.qianyu.project.web.controller.gs;

import com.qianyu.project.service.IProjectTypeService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gs
 * @date create in 2021/1/31 9:54
 */
@RestController
@RequestMapping("/projectTypes")
public class ProjectTypeController {

    @Autowired
    private IProjectTypeService projectTypeService;

    @GetMapping
    public Result getList() {
        return ResultTool.success(projectTypeService.list());
    }


    @GetMapping("/findProjectName")
    public Result findProjectName(){
        return ResultTool.success(projectTypeService.findProjectName());
    }
}
